package top.haichi.webpaper.utils;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import top.haichi.webpaper.entity.Paper;
import top.haichi.webpaper.mapper.PaperMapper;

import java.time.LocalDate;
import java.util.UUID;

@Component
public class FakeDataUtils {
    public static Paper[] generatePapers(String owner_id){
        Paper[] papers = {
                new Paper(UUID.randomUUID().toString(), "未知", "深度学习在医疗保健中的应用研究", "张三", LocalDate.now(), LocalDate.now(), "pdf", 100, "bd78-43fb-8bff-68c1f6824783.pdf", owner_id),
                new Paper(UUID.randomUUID().toString(), "审核中", "区块链技术在供应链管理中的探索与应用", "李四", LocalDate.now(), LocalDate.now(), "doc", 200, "9e01f80a-bd78-43fb-8bff-68c1f6824783.pdf", owner_id),
                new Paper(UUID.randomUUID().toString(), "待修改", "社交媒体对心理健康的影响分析", "王五", LocalDate.now(), LocalDate.now(), "pdf", 150, "eyJpZCI6IjEyMzQiLCJzdGF0dXMiOiJzdHVkZW50Iiwi.pdf", owner_id),
                new Paper(UUID.randomUUID().toString(), "已完成", "机器学习算法在预测性维护中的应用研究", "赵六", LocalDate.now(), LocalDate.now(), "doc", 300, "bd78-43fb-8bff-68c1f6824783.pdf", owner_id)
        };
        return papers;
    }


}
